package cn.edu.xmu.wnw.pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * Community entity. @author MyEclipse Persistence Tools
 */

public class Community  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String name;
     private Date createTime;
     private String description;
     private Set users = new HashSet(0);
     private Set titles = new HashSet(0);


    // Constructors

    /** default constructor */
    public Community() {
    }

	/** minimal constructor */
    public Community(String name) {
        this.name = name;
    }
    
    /** full constructor */
    public Community(String name, Date createTime, String description, Set users, Set titles) {
        this.name = name;
        this.createTime = createTime;
        this.description = description;
        this.users = users;
        this.titles = titles;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }

    public Set getUsers() {
        return this.users;
    }
    
    public void setUsers(Set users) {
        this.users = users;
    }

    public Set getTitles() {
        return this.titles;
    }
    
    public void setTitles(Set titles) {
        this.titles = titles;
    }
   








}